#include "histogramblue.h"

histogramBlue::histogramBlue(QWidget *parent) : QWidget(parent)
{
}

void histogramBlue::paintEvent(QPaintEvent *p)
{
    QPainter pincel(this);
    pincel.setPen(QColor(0,0,255,255));

    for(int i=0;i<256;++i)
    {
        pincel.drawLine(i,112,i,112-v->B[i]*112/v->maB);
    }


}
